﻿<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%option explicit%>
<%
Dim RZ_IN
RZ_IN=1
%>
<!--#include file="../conn.inc.asp" -->
<!--#include file="admin_inc/admin.function.asp" -->
<!--#include file="admin_inc/admin.sqlfunction.asp" -->
<!--#include file="../asp/friendlink.asp" -->
<%
checkadmin(1)
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>生成友情链接页</title>
<link type="text/css" href="style/style.css" rel="stylesheet" rev="stylesheet"/>
</head>
<body style="margin-left:50px;margin-top:0px;">
<%
Dim filepath
Call ChangeStatic(1,0)
S_RZPARAM.QueryString=RZ_PRE_FRIENDLINK_LIST&"0-s0.html"
S_RZPARAM.Generate()
S_TEMPLATE=""
S_HTMLMBUFFER=""
Set S_CRUMB=new RZCrumb 
Call FriendLink(1)
filepath=GetPath(RZ_HTML_PATH&"/"&RZ_PRE_FRIENDLINK_LIST&"0.html")
Call CreateFolders(GetPath(RZ_HTML_PATH))
Call SaveFile(filepath,S_HTMLMBUFFER)

If app("rz_language")=2 Then 
	Call ChangeStatic(1,1)
	S_RZPARAM.QueryString=RZ_PRE_FRIENDLINK_LIST&"1-s0.html"
	S_RZPARAM.Generate()
	S_TEMPLATE=""
	S_HTMLMBUFFER=""
	Set S_CRUMB=new RZCrumb 
	Call FriendLink(1)
	filepath=GetPath(RZ_HTML_PATH&"/"&RZ_PRE_FRIENDLINK_LIST&"1.html")
	Call CreateFolders(GetPath(RZ_HTML_PATH))
	Call SaveFile(filepath,S_HTMLMBUFFER)
End If 
%>
<span id="result" style="clor:blue">成功生成友情链接页</span>
<script type="text/javascript">
<!--
	parent.document.getElementById("mon").value="friendlinkdone";
//-->
</script>
</body>
</html>
